Applying Techniques to Skeletons
نویسندگان
چکیده
This paper concerns our research on developing a theory and methodology appropriate for systematically building complicated Prolog programs. Programs are constructed procedurally from standard components. We identify skeletons, basic Prolog programs with a well-understood control ow, and techniques, standard Prolog programming practices, as basic components. Applying a technique to a skeleton creates an extension of the skeleton. Complicated programs are built by choosing a skeleton and repeatedly applying techniques. Separate extensions of the same skeleton can be composed into a single program, simplifying the process of program development. We describe our application of skeletons and techniques within the framework of Shapiro's Model Inference System. 1.1 INTRODUCTION Stepwise reenement, as advocated by Wirth Wir71], emerged as a methodology to develop programs in procedural programming languages to produce clear, well structured code. There is no analogous method for the systematic construction of Prolog programs. Sporadic attempts have been made over the years to automati-cally/systematically construct logic programs, for example LP90, Fri90]. However, much of the eeort has been concentrated on logic and formal transformations. Our experience in teaching Prolog suggests that students do not naturally develop programs by developing and then transforming correct statements of logic. Rather, they think of programming in procedural terms. This need not connict with the declarative ideal of logic programming if well structured programs are used. Procedural be
منابع مشابه
Functional Skeletons Generate Process Topologies in Eden
We present a collection of skeletons that are appropriate to instantiate process systems in the functional-concurrent language Eden BLOM96]. Eden is a functional language providing facilities for the explicit deenition and instantiation of processes. Skeletons in this language are just higher order functions having process deenitions as parameters. We introduce skeletons for both transformation...
متن کاملSemigroups with inverse skeletons and Zappa-Sz$acute{rm e}$p products
The aim of this paper is to study semigroups possessing $E$-regular elements, where an element $a$ of a semigroup $S$ is {em $E$-regular} if $a$ has an inverse $a^circ$ such that $aa^circ,a^circ a$ lie in $ Esubseteq E(S)$. Where $S$ possesses `enough' (in a precisely defined way) $E$-regular elements, analogues of Green's lemmas and even of Green's theorem hold, where Green's relations ${mathc...
متن کاملSkeletons and Techniques for the Systematic Development of Constraint Logic Programs
We study the systematic development of Constraint Logic Programs from the viewpoint of Skeletons and Techniques as described by Kirschenbaum and Sterling. We describe a number of fundamental skeleton classes for CLP, and generalize the notion of skeletons to deal with non-structural recursion. Then we describe a range of useful techniques for extending these skeletons. Furthermore, we introduce...
متن کاملA Method for Quantitative Comparison of 2D Skeletons
Skeletons are widely used shape descriptors which summarize the general form of binary objects. There exist numerous skeletonization techniques that produce various skeleton-like features for the same object. Despite of the fact, that some researchers have made efforts to compare skeletons and evaluate skeletonization algorithms, we propose a new similarity measure that is based on the concept ...
متن کاملForamen Tympanicum or Foramen of Huschke: A Bioarchaeological Study on Human Skeletons from an Iron Age Cemetery at Tabriz Kabud Mosque Zone
The foramen tympanicum is an anatomical variation that is created in the tympanic plate of temporal bone during the first year of life. The tympanic plate grows and foramen tympanicum is gradually closed by about the fifth postnatal year. However, due to a defect in normal ossification, foramen tympanicum sporadically remains throughout life. The construction of a shopping center in Tabriz, nor...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1991